package com.example.hangzhou.welbeing.mytestdemoapp.animation.animationActivity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.transition.Fade;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.example.hangzhou.welbeing.mytestdemoapp.R;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 杭州惟君医疗科技有限公司13
 * Created by 20433 on 2018/5/7
 *
 * @desc 东风山河绿，春已不折柳，繁花看不尽，处处惹人留
 * @desc 佛祖镇楼，bug辟容易
 */

public class AnimatedTransitionsDetailsPageActivity extends AppCompatActivity {


    @Bind(R.id.activity_animation_transition_details_page_iv_planet)
    ImageView activityAnimationTransitionDetailsPageIvPlanet;
    @Bind(R.id.activity_animation_transition_details_page_rl_image)
    RelativeLayout activityAnimationTransitionDetailsPageRlImage;
    @Bind(R.id.activity_animation_transition_details_page_tv_content)
    TextView activityAnimationTransitionDetailsPageTvContent;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
//        getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
//        getWindow().setEnterTransition(new Explode().setDuration(2000));
//        getWindow().setExitTransition(new Explode().setDuration(800));

//        getWindow().setEnterTransition(new Slide().setDuration(2000));
//        getWindow().setExitTransition(new Slide().setDuration(2000));


        getWindow().setEnterTransition(new Fade().setDuration(1500));
        getWindow().setExitTransition(new Fade().setDuration(1500));

        setContentView(R.layout.activity_animation_transition_details_page);
        ButterKnife.bind(this);


    }
}
